<?php
require '../lib/Modelsphp.php';
$f=new Modelsphp();


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if(isset($_GET['ac']))
{
    switch ($_GET['ac']) {
        case 'user':
                if(isset($_GET['id']))
                {
                    $f->deleteUser($_GET['id'])  ;
                     header('Location:home.php');
                 }

            break;
			case 'art':
                if(isset($_GET['id']))
                {
                    $f->deleteArt($_GET['id'])  ;
                     header('Location:listArt.php');
                 }

                break;
            case 'cate':
                if(isset($_GET['id']))
                {
                    $f->deleteCate($_GET['id'])  ;
                     header('Location:listCategory.php');
                 }

                break;
        default:
                header('Location:home.php');
            break;
                    }
  
}


?>
